﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.IO;

namespace SAASInvest.Contracts
{
    [ServiceContract]
    public interface IFileUpload
    {
        [OperationContract(IsOneWay =true)]
        void UploadFile(FileUploadStream uploadStream);

        [OperationContract]
        void UploadData(FileUploadData uploadData);
    }

    [ServiceContract]
    public interface IAsynFileUpload
    {
        [OperationContract]
        FileUploadData AnysUploadFile(FileUploadData uploadData);

        [OperationContract]
        List<FileUploadData> GetFileDatasList();

        [OperationContract]
        FileUploadData GetFile(string fileName);
    }
}
